package com.zzzyh.forumsystemclient.services.impl;

import com.zzzyh.forumsystemclient.dao.SysFriendMapper;
import com.zzzyh.forumsystemclient.model.SysFriend;
import com.zzzyh.forumsystemclient.services.IFriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FriendServiceImpl implements IFriendService {
    @Autowired
    private SysFriendMapper sysFriendMapper;

    @Override
    public List<SysFriend> list() {
        return sysFriendMapper.list();
    }

    @Override
    public void apply(SysFriend sysFriend) {
        sysFriendMapper.insertSelective(sysFriend);
        return;
    }
}
